home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_49.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  126KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | poster | reckoner | sky
OCR: Lesson 10 Additional math This is a poot time to learn several other Mops math operations. They're rather simple, so you may as well get them out of f the way now, and use them as you go along We won't be saying too much about them here, but experiment with each of them bit to get feeling for how they work. One group of operations compares the values of the two topmost items in the parameters stack The result of the comparison Is placed on the stack. Here they are MIN n1 n-min Leaves the smaller of nl and n2 on the stack MAX n1 n-max Leaves the larger of fnl and n2 on the stack The next group manipulates the signs of integers -positive or negative One returns the absolute value (positive value of the topmost number in the stack The other changes the sign of the topmost number in the stack: ...